add_executable(itkTestDriver itkTestDriver.cxx)
target_link_libraries(itkTestDriver
  LINK_PRIVATE ${ITK_MODULE_ITKTestKernel_PRIVATE_DEPENDS}
  LINK_PUBLIC ${ITK_MODULE_ITKTestKernel_PUBLIC_DEPENDS} ${ITKTestKernel_LIBRARIES})
itk_module_target_label(itkTestDriver)
itk_module_target_export(itkTestDriver)

if(NOT DO_NOT_INSTALL_ITK_TEST_DRIVER) # used only by vcpkg
  itk_module_target_install(itkTestDriver)
endif()

set(ITKTestKernel_SRCS
  itkTestDriverIncludeRequiredIOFactories.cxx
  itkTestDriverInclude.cxx
  itkTestingExtractSliceImageFilter.cxx)

itk_module_add_library(ITKTestKernel ${ITKTestKernel_SRCS})
